<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <script src="node_modules/vue/dist/vue.min.js"></script>
</head>
<body>
    <div id='con'>

        <!-- v-bind 指令作用就是让html标签的属性可以接受变量 -->
        <img v-bind:src="imgurl" />
        <hr>
        <h1>简写</h1>
        <img :src="imgurl" />
    </div>
    <script>
        new Vue({
            el:"#con",
            data:{
                imgurl:"1.jpg"
            },
            methods:{

            }
        })
    </script>
</body>
</html>